package com.open.web.rest.param;

import com.open.basic.BaseRequest;
import com.open.validator.EnumExt;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author: codex
 * @Date: 2024/4/27 17:25
 * @Version: V1.0
 * @description: desc:
 */

public class StatusRequest extends BaseRequest {

    @NotNull
    @Min(1)
    private Long id;

    /**
     * 状态： 1 正常 2 禁用 3 冻结
     */
    @EnumExt(value = {"1", "2", "3"})
    private Integer status;

    public Long getId() {
        return id;
    }

    public StatusRequest setId(Long id) {
        this.id = id;
        return this;
    }

    public Integer getStatus() {
        return status;
    }

    public StatusRequest setStatus(Integer status) {
        this.status = status;
        return this;
    }
}
